var xmlHttp2

function positionch(){
	sel = document.getElementById("xdepart2")	
	ppid = sel.value
	setPosition(ppid)
}

function setPosition(pid){ 
	var url="get_position_search.php?depart="+pid
	xmlHttp2=GetXmlHttpObject(setPositionRun)
	xmlHttp2.open("GET", url , true)
	xmlHttp2.send(null)
} 

function setPositionRun(){ 
	if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete"){ 
		document.getElementById("xsposition").innerHTML=xmlHttp2.responseText 
	} 
} 

